package utils

func IsEmpty(v interface{}) bool {
	if v == nil {
		return true
	}

	if value, ok := v.(string); ok {
		return len(value) == 0
	} else if value, ok := v.([]interface{}); ok {
		return len(value) == 0
	} else if value, ok := v.(map[interface{}]interface{}); ok {
		return len(value) == 0
	} else {
		return false
	}
}
